/*! * ScrollTrigger 3.11.2 * https://greensock.com * * @license Copyright 2022, GreenSock. All rights reserved. * Subject to the terms at https://greensock.com/standard-license or for Club GreenSock members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function _defineProperties(e,t){for(var r=0;r=Math.abs(r)?t:r}function N(){(De=we.core.globals().ScrollTrigger)&&De.core&&function _integrate(){var e=De.core,r=e.bridge||{},t=e._scrollers,n=e._proxies;t.push.apply(t,k),n.push.apply(n,Fe),k=t,Fe=n,i=function _bridge(e,t){return r[e](t)}}()}function O(e){return(we=e||q())&&"undefined"!=typeof document&&document.body&&(Ae=window,Me=(Ee=document).documentElement,Ce=Ee.body,t=[Ae,Ee,Me,Ce],we.utils.clamp,Ie="onpointerenter"in Ce?"pointer":"mouse",Pe=C.isTouch=Ae.matchMedia&&Ae.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Ae||0=o,n=Math.abs(t)>=o;T&&(r||n)&&T(se,e,t,be,me),r&&(m&&0Math.abs(t)?"x":"y",ie=!0),"y"!==ae&&(be[2]+=e,se._vx.update(e,!0)),"x"!==ae&&(me[2]+=t,se._vy.update(t,!0)),i?ee=ee||requestAnimationFrame(Qe):Qe()}function Te(e){if(!Oe(e,1)){var t=(e=L(e,s)).clientX,r=e.clientY,n=t-se.x,o=r-se.y,i=se.isDragging;se.x=t,se.y=r,(i||Math.abs(se.startX-t)>=a||Math.abs(se.startY-r)>=a)&&(h&&(re=!0),i||(se.isDragging=!0),Se(n,o),i||p&&p(se))}}function Ve(t){if(!Oe(t,1)){B(F?n:ve,ze[1],Te,!0);var e=se.isDragging&&(3=e)return a[n];return a[n-1]}for(n=a.length,e+=r;n--;)if(a[n]<=e)return a[n];return a[0]}:function(e,t,r){void 0===r&&(r=.001);var n=i(e);return!t||Math.abs(n-e)r&&(n*=t/100),e=e.substr(0,r-1)),e=n+(e in R?R[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e}function ub(e,t,r,n,o,i,a,s){var l=o.startColor,c=o.endColor,u=o.fontSize,f=o.indent,d=o.fontWeight,p=Ge.createElement("div"),g=Da(r)||"fixed"===y(r,"pinType"),h=-1!==e.indexOf("scroller"),v=g?et:r,b=-1!==e.indexOf("start"),m=b?l:c,x="border-color:"+m+";font-size:"+u+";color:"+m+";font-weight:"+d+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return x+="position:"+((h||s)&&g?"fixed;":"absolute;"),!h&&!s&&g||(x+=(n===Je?S:T)+":"+(i+parseFloat(f))+"px;"),a&&(x+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),p._isStart=b,p.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),p.style.cssText=x,p.innerText=t||0===t?e+"-"+t:e,v.children[0]?v.insertBefore(p,v.children[0]):v.appendChild(p),p._offset=p["offset"+n.op.d2],Y(p,0,n,b),p}function zb(){return 34et.clientWidth)||(k.cache++,w=w||requestAnimationFrame(U),ht||V("scrollStart"),ht=gt())}function Bb(){m=je.innerWidth,b=je.innerHeight}function Cb(){k.cache++,ot||g||Ge.fullscreenElement||Ge.webkitFullscreenElement||v&&m===je.innerWidth&&!(Math.abs(je.innerHeight-b)>.25*je.innerHeight)||l.restart(!0)}function Fb(){return ob(re,"scrollEnd",Fb)||Q(!0)}function Ib(e){for(var t=0;t=O})},_e.update=function(e,t,r){if(!fe||r||e){var n,o,i,a,s,l,c,u=ft?Q:_e.scroll(),f=e?0:(u-M)/z,d=f<0?0:1=Ha(ve,ge),ue)if(e||!n&&!l)bc(oe,F);else{var g=Mt(oe,!0),h=u-M;bc(oe,et,g.top+(ge===Je?h:0)+Et,g.left+(ge===Je?0:h)+Et)}Bt(n||l?Y:L),N!==z&&d<1&&n||b(K+(1!==d||l?0:N))}}else b(Aa(K+N*d));!ce||k.tween||ot||pt||q.restart(!0),$&&(s||le&&d&&(d<1||!ut))&&tt($.targets).forEach(function(e){return e.classList[n||le?"add":"remove"]($.className)}),!Z||he||e||Z(_e),a&&!ot?(he&&(c&&("complete"===i?T.pause().totalProgress(1):"reset"===i?T.restart(!0).pause():"restart"===i?T.restart(!0):T[i]()),Z&&Z(_e)),!s&&ut||(ee&&s&&Oa(_e,ee),ye[o]&&Oa(_e,ye[o]),le&&(1===d?_e.kill(!1,1):ye[o]=0),s||ye[o=1===d?1:3]&&Oa(_e,ye[o])),de&&!n&&Math.abs(_e.getVelocity())>(La(de)?de:2500)&&(Na(_e.callbackAnimation),W?W.progress(1):Na(T,"reverse"===i?1:!d,1))):he&&Z&&!ot&&Z(_e)}if(w){var v=fe?u/fe.duration()*(fe._caScrollDist||0):u;x(v+(D._isFlipped?1:0)),w(v)}U&&U(-u/fe.duration()*(fe._caScrollDist||0))}},_e.enable=function(e,t){_e.enabled||(_e.enabled=!0,nb(ve,"resize",Cb),nb(be?Ge:ve,"scroll",Ab),Se&&nb(ScrollTrigger,"refreshInit",Se),!1!==e&&(_e.progress=j=0,A=E=Ae=Me()),!1!==t&&_e.refresh())},_e.getTween=function(e){return e&&k?k.tween:W},_e.setPositions=function(e,t){oe&&(K+=e-M,N+=t-e-z),_e.start=M=e,_e.end=O=t,z=t-e,_e.update()},_e.disable=function(e,t){if(_e.enabled&&(!1!==e&&_e.revert(!0,!0),_e.enabled=_e.isActive=!1,t||W&&W.pause(),Q=0,n&&(n.uncache=1),Se&&ob(ScrollTrigger,"refreshInit",Se),q&&(q.pause(),k.tween&&k.tween.kill()&&(k.tween=0)),!be)){for(var r=Pt.length;r--;)if(Pt[r].scroller===ve&&Pt[r]!==_e)return;ob(ve,"resize",Cb),ob(ve,"scroll",Ab)}},_e.kill=function(e,t){_e.disable(e,t),W&&!t&&W.kill(),a&&delete It[a];var r=Pt.indexOf(_e);0<=r&&Pt.splice(r,1),r===at&&0i&&(v()>i?a.progress(1)&&v(i):a.resetTo("scrollY",i))}Ma(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var n,i,l,o,a,c,u,s,f=e.normalizeScrollX,t=e.momentum,r=e.allowNestedScroll,d=I(e.target)||Ue,p=qe.core.globals().ScrollSmoother,g=p&&p.get(),h=P&&(e.content&&I(e.content)||g&&!1!==e.content&&!g.smooth()&&g.content()),v=J(d,Je),b=J(d,He),m=1,y=(C.isTouch&&je.visualViewport?je.visualViewport.scale*je.visualViewport.width:je.outerWidth)/je.innerWidth,x=0,w=Ka(t)?function(){return t(n)}:function(){return t||2.8},_=ic(d,e.type,!0,r),S=za,T=za;return h&&qe.set(h,{y:"+=0"}),e.ignoreCheck=function(e){return P&&"touchmove"===e.type&&function ignoreDrag(){if(o){requestAnimationFrame(np);var e=Aa(n.deltaY/2),t=T(v.v-e);if(h&&t!==v.v+v.offset){v.offset=t-v.v;var r=Aa((parseFloat(h&&h._gsap.y)||0)-v.offset);h.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+r+", 0, 1)",h._gsap.y=r+"px",v.cacheID=k.cache,U()}return!0}v.offset&&rp(),o=!0}()||1.05=i||i-1<=r)&&qe.to({},{onUpdate:xp,duration:o})}else s.restart(!0)},e.onWheel=function(){a._ts&&a.pause(),1e3